﻿<?php
/**
 *
 * ============================================================================
 * * 版权所有 运游通 * *
 * 网站地址: http://www.dlltrip.com
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用；不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
 * Author By: 倪宗锋
 * PhpStorm wxMenu.config.php
 * Create By 2017/1/4 16:40 $
 */

/**
 * Des:登录 设置菜单url
 * Name: setMenuUrl
 * @param $url
 * @return string
 * @author 倪宗锋
 */
function setMenuUrl($url)
{
    $loginUrl = 'http://dllwx.dlltrip.com/zzcx/user/login/menu-url?redirect=';
    $reUrl = $loginUrl . urlencode($url);
    return $reUrl;
}

return '{
      "button":[
      {
	       "type":"view",
           "name":"快速预定",
           "url":"' . setMenuUrl('http://dllwx.dlltrip.com/web/zzcx/index.html?version=3.3.3') . '"
       },
       {
	       "type":"view",
           "name":"我的行程",
           "url":"' . setMenuUrl('http://dllwx.dlltrip.com/web/zzcx/index.html#/main/user/trip_list?version=3.3.3') . '"            
       },
       {
	       "name":"特异功能",
			"sub_button":[
			{
               "type":"view",
               "name":"免费福利",
               "url":"https://mp.weixin.qq.com/s/D_Q66O3l8pVdXbXOXJ2VzA"            
           },
			 {
               "type":"click",
               "name":"APP下载",
               "key":"app_download"       
            }, 
            {
               "type":"click",
               "name":"联系客服",
               "key":"MSG_LIANXIKEFU"
            }
            ]
       }
	   ]
 }';